# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to check if a file exsits. # Parameters - # Configuration Type - USER/COMPUTER if [ $# == '1' ]; then if [ -f "$1" ] then echo "$1 found." exit 0 else echo "$1 not found." exit 2 fi else echo "Invalid Arguments - Please refer description of the script" exit 1 fi